function   out2(el)   
{   
var   x   =   el.rowIndex;   
if   (d[x]%2==0)   el.style.backgroundColor   =   "";   
}   

function   out_bg(el)   
{   
var   x   =   el.rowIndex;   
if   (d[x]%2==0)   el.style.backgroundColor   =   "#059";   
}  

function   over2(el)   
{   
var   x   =   el.rowIndex;   
if   (d[x]%2==0)   el.style.backgroundColor   =   "#369";   
}   
    
function   change2(el)   
{   

var   x   =   el.rowIndex;   
el.style.backgroundColor   =   ++d[x]%2   ?   "#963"   :   "#369";   
} 


/******************机组统计报表 macReport.jsp********************/

function   out(el)   
{   
var   x   =   el.rowIndex;   
if   (d[x]%2==0)   el.style.backgroundColor   =   "";   
}   
    
function   over(el)   
{   
var   x   =   el.rowIndex;   
if   (d[x]%2==0)   el.style.backgroundColor   =   "#E1E9FD";   
}   
    
function   change(el)   
{   

var   x   =   el.rowIndex;   
el.style.backgroundColor   =   ++d[x]%2   ?   "#FCE0A6"   :   "#E1E9FD";   
} 


/**导成EXCEL格式*******************************************************/
/**说明：如果浏览器报JS错误，请把参照如下步骤设置浏览器安全属性***********/
/**具体设置步骤为：Tools(工具）->Internet Option...(IE 选项）->Security(安全）->Custom Level(用户自定义级别）**/
/**将选项： Initialize and script ActiveX controls not marked as safe for scripting (对没有标记为安全的ActiveX控件进行初始化和脚本运行)设置为:enable **/
function Copy2Excel(table) 
{
	try
	 {
	    var oXL = new ActiveXObject("Excel.Application"); 
	 }
	 catch (ex)
	 {
	  alert("Excel对象无法创建，请将浏览器安全属性(对没有标记为安全的ActiveX控件进行初始化和脚本运行)设置为 [可用];  如果您未安装Excel,请安装！");
	 }
 var oWB = oXL.Workbooks.Add(); 
 var oSheet = oWB.ActiveSheet;  
 var sel=document.body.createTextRange();
 sel.moveToElementText(table);
 sel.select();
 sel.execCommand("Copy");
 oSheet.Paste();
 oXL.Visible = true;
 document.selection.empty();
 
 

}

/**导成EXCEL说明帮助***************************************************/
function help(){
	alert('如果导出EXCEL不成功，请将浏览器安全属性(对没有标记为安全的ActiveX控件进行初始化和脚本运行)设置为 ：可用');
	
}

/***全屏*****************************/
function fullscree(){
window.moveTo(0,0);
window.resizeTo(screen.availWidth,screen.availHeight);
}